<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> window </TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
 </HEAD>
 <BODY>
<div>
<input type="button" value="确定" name="btn-confirm"/>
<input type="button" value="关闭" name="btn-close"/>
</div>
<div class="main">
<input id="fid" type="text" name="name" value="1">
</div>
<SCRIPT LANGUAGE="JavaScript">
$(function(){
	$('input[name="btn-confirm"]').click(function(){
		var par=window.parent.window.jQuery;
		var val= $('#fid').val();
		par.binhEvent.wincallback(val);
		par.binhEvent.winclose();
	});
	$('input[name="btn-close"]').click(function(){
		window.parent.window.jQuery.binhEvent.winclose();
	});
})
</SCRIPT>
 </BODY>
</HTML>
